<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'admin_bill_list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
<link type="text/css" rel="stylesheet" href="css/style.css" />
<script type="text/javascript">
	
</script>
  </head>
  
 <body>
<div class="menu">
	<form method="post" action="findBill.action">
		商品名称：<input type="text" name="productName" class="input-text" value=""/>&nbsp;&nbsp;&nbsp;&nbsp;
		是否付款：<select name="payStatus">
			<option value="2">请选择</option>
			<option value="1">已付款</option>
			<option value="0">未付款</option>
		</select>&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="submit" name="submit" value="组合查询" class="button" />
	</form>
</div>
<div class="main">
	<div class="optitle clearfix">
		<em><input type="button" name="button" value="添加数据" class="input-button" onclick="location.href='modify.jsp'" /></em>
		<div class="title">账单管理&gt;&gt;</div>
	</div>
	<div class="content">
		<table class="list">
			<tr>
				<td>账单编号</td>
				<td>商品名称</td>
				<td>商品数量</td>
				<td>交易金额</td>
				<td>是否付款</td>
				<td>供应商名称</td>
				<td>商品描述</td>
				<td>账单时间</td>
			</tr>
			<c:forEach items="${requestScope.bills }" var="bill">
				<tr>
					<td>${bill.billsId }</td>
					<td>${bill.goods.goodsName }</td>
					<td>${bill.count }</td>
					<td>${bill.deal }</td>
					<td>${bill.payMent==1?"是":"否" }</td>
					<td>${bill.provider.proName }</td>
					<td>${bill.description }</td>
					<td>${bill.billsDate }</td>
					<td><a href="deleteBill.action?billsId=${bill.billsId }">
					<button>删除</button>
					</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>
</div>
</body>
</html>
